package newsDao;

import java.io.Serializable;
import java.sql.Timestamp;

public class NewsEntity implements Serializable {
	private long nid, ntid;
	private String ntitle, nauthor, npicPath, ncontent, nsummary;
	private Timestamp ncreateDate, nmodifyDate;

	public NewsEntity() {

	}

	public NewsEntity(long nid, long ntid, String ntitle, String nauthor,
			String npicPath, String ncontent, String nsummary,
			Timestamp ncreateDate, Timestamp nmodifyDate) {
		super();
		this.nid = nid;
		this.ntid = ntid;
		this.ntitle = ntitle;
		this.nauthor = nauthor;
		this.npicPath = npicPath;
		this.ncontent = ncontent;
		this.nsummary = nsummary;
		this.ncreateDate = ncreateDate;
		this.nmodifyDate = nmodifyDate;
	}

	public long getNid() {
		return nid;
	}

	public void setNid(long nid) {
		this.nid = nid;
	}

	public long getNtid() {
		return ntid;
	}

	public void setNtid(long ntid) {
		this.ntid = ntid;
	}

	public String getNtitle() {
		return ntitle;
	}

	public void setNtitle(String ntitle) {
		this.ntitle = ntitle;
	}

	public String getNauthor() {
		return nauthor;
	}

	public void setNauthor(String nauthor) {
		this.nauthor = nauthor;
	}

	public String getNpicPath() {
		return npicPath;
	}

	public void setNpicPath(String npicPath) {
		this.npicPath = npicPath;
	}

	public String getNcontent() {
		return ncontent;
	}

	public void setNcontent(String ncontent) {
		this.ncontent = ncontent;
	}

	public String getNsummary() {
		return nsummary;
	}

	public void setNsummary(String nsummary) {
		this.nsummary = nsummary;
	}

	public Timestamp getNcreateDate() {
		return ncreateDate;
	}

	public void setNcreateDate(Timestamp ncreateDate) {
		this.ncreateDate = ncreateDate;
	}

	public Timestamp getNmodifyDate() {
		return nmodifyDate;
	}

	public void setNmodifyDate(Timestamp nmodifyDate) {
		this.nmodifyDate = nmodifyDate;
	}

	@Override
	public String toString() {
		return "NewsEntity [nid=" + nid + ", ntid=" + ntid + ", ntitle="
				+ ntitle + ", nauthor=" + nauthor + ", npicPath=" + npicPath
				+ ", ncontent=" + ncontent + ", nsummary=" + nsummary
				+ ", ncreateDate=" + ncreateDate + ", nmodifyDate="
				+ nmodifyDate + "]";
	}

}
